AL icon indicating copy to clipboard operation
AL copied to clipboard

The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=recreate failed with code 422. Reason: There is an error in XML document (1, 1488)

Open tfbtrading opened this issue 7 years ago • 3 comments

Describe the bug The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=recreate failed with code 422. Reason: There is an error in XML document (1, 1488)

This is a result when publishing to the Cloud Sandbox. Does not say which XML file.

Added two new tables into Tenant Specific Extension after which this error resulted. Compiler shows no errors.

Looked similar error in GitHub - but it indicated problem was SourceTableView. I checked and had no similar code problem.

To Reproduce Steps and/or AL code to reproduce the behavior:

  1. Publish to Cloud Sandbox

Expected behavior Expect to publish and run cloud sandbox in the web.

Screenshots If applicable, add screenshots to help explain your problem.

Versions:

  • AL Langauge: 2.1.79379
  • Business Central: 13.3 (28186)

tfbtrading avatar Feb 24 '19 02:02 tfbtrading

Hi @tfbtrading, Can you provide some AL that reproduces the problem?

thpeder avatar Feb 25 '19 15:02 thpeder

I actually discerned the problem although the error wasn't informative. It was using a importance=optional rather than additional in a field definition.

It confused because I have other products with the indirect nav table permissions if I'm trying to deploy against a cloud sandbox copies from production. Al deployment only works against the pre-canned sandbox.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Thomas Pedersen [email protected] Sent: Tuesday, February 26, 2019 2:51 am To: Microsoft/AL Cc: Russell Kallman; Mention Subject: Re: [Microsoft/AL] The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=recreate failed with code 422. Reason: There is an error in XML document (1, 1488) (#4648)

Hi @tfbtradinghttps://github.com/tfbtrading, Can you provide some AL that reproduces the problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/AL/issues/4648#issuecomment-467063544, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AooDXvASCAyJofemey1Uj2oxLeesL87Mks5vRAZtgaJpZM4bOTBj.

tfbtrading avatar Feb 25 '19 18:02 tfbtrading

I'm marking this as a bug, because we want to improve the error messages you saw. Regarding the issue you had with the property importance, starting from spring 2019 it is not allowed to use optional anymore since the system didn't act on it.

thpeder avatar Apr 11 '19 09:04 thpeder