function onCreateActivate(oEvent) {
			const oCreatedContext = oEvent.getParameter("context");
			if (!oCreatedContext.getObject("").ItemPosition) {
				oMessage = {
					message : "Item position is required",
					type : "Error",
					target : oCreatedContext.getPath() + "/ItemPosition",
					fullTarget : oCreatedContext.getDeepPath() + "/ItemPosition",
					processor : oModel
				};
				aExpectedMessages.push(oMessage);
				that.expectMessages(aExpectedMessages);
				Messaging.addMessages(new Message(oMessage));
				oEvent.preventDefault();
			} else {
				const aCurrentMessages = Messaging.getMessageModel().getObject("/");
				aCurrentMessages.some((oMessage) => {
					if (oMessage.getTargets()[0] === oCreatedContext.getPath() + "/ItemPosition") {
						Messaging.removeMessages(oMessage);
						aExpectedMessages = aExpectedMessages.slice(0, 1);
						return true;
					}
					return false;
				});
				that.expectMessages(aExpectedMessages);

				return; // do not create another inactive row
			}

			// code under test - create works also if binding length is not final but Filter.NONE is set
			oRowsBinding.create({}, /*bAtEnd*/ true, {inactive: true});
		}
******************************************************************************************
	// Scenario: For a table where only transient entries have messages, the filter returned by requestFilterForMessages
	// is Filter.NONE. When the list is filtered, only the transient entries are shown and no $filter and no $count
	// request occurs. It is still possible to create new inactive entries. Check that count and length of the binding
	// is always correct.
	// JIRA:CPOUI5MODELS-1421
["Default", "Client"].forEach((sOperationMode) => {
	const sTitle = "Filter table where only transient items have messages: operation mode=" + sOperationMode;
	QUnit.test(sTitle, function (assert) {
		let oMessage, oRowsBinding, oTable;
		let aExpectedMessages = [];
		const oModel = createSalesOrdersModel({
				defaultBindingMode : BindingMode.TwoWay,
				defaultCountMode : CountMode.Request,
				defaultOperationMode : sOperationMode,
				preliminaryContext : true
			});
		const sView = '\
<t:Table id="table" rows="{/SalesOrderSet(\'1\')/ToLineItems}" visibleRowCount="3">\
	<Input id="itemPosition" value="{ItemPosition}" />\
	<Input id="note" value="{Note}" />\
</t:Table>';
		const that = this;

		/* Prevents activation of passed inactive context, adds a message to the message model for
		this context, creates another inactive context at the end if ItemPosition is empty.