I tried to import data via postman using enitity(DirectDebitMandates) Customer Direct Debit Mandates. But the entity is not allowed to create Direct Debit Mandates form. Getting 403: Forbidden errored "message": "insert not allowed for field 'Status'". The same problem occurred when we removed the Status field from the payload. Please suggest or solution resolve this issue
XXXX.trial.operations.dynamics.com/.../DirectDebitMandates
PayLoad
{
"dataAreaId": "2000",
"DaysForRecurringPrenotification": 14,
"CustomerAccount": "2000-000171",
"DaysForFirstPrenotification": 14,
"CustomerBankAccount": "011900572",
"MandateScheme": "CORE",
"DaysForFirstBankSubmission": 5,
"UsageCount": 0,
"IsFirst": "Yes",
"ExpectedNumberOfPayments": 0,
"MandatePaymentType": "Recurring",
"CreditorBankAccount": "122322322",
"DaysForRecurringBankSubmission": 2
}
Error
{
"error": {
"code": "",
"message": "An error has occurred.",
"innererror": {
"message": "insert not allowed for field 'Status'",
"type": "Microsoft.Dynamics.Platform.Integration.Services.OData.ODataSecurityException",
"stacktrace": " at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.CreateEntity_Save(ChangeOperationContext context, ChangeInfo changeInfo)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.TrySave(ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.<SaveChangesAsync>d__2.MoveNext()"
}
}
}