SchemaUpdateMode = synchronize failed with code 422. Reason: Value cannot be null.
Hello,
Facing the following error while publishing the app to sandbox.
SchemaUpdateMode=synchronize failed with code 422. Reason: Value cannot be null. Parameter name: value
Al Version : 0.14.17461
Can someone suggest me on what i am missing
Launch.json file :
{ "version": "0.2.0",
"configurations": [
{
"name": "Microsoft cloud sandbox",
"type": "al",
"request": "launch",
"startupObjectId": 22,
"schemaUpdateMode": "Synchronize",
}
]
}
Hi @srinivasdes, do you have some repro steps we could follow to reproduce it?
Hi Qutreson,
Thanks for your response.
what is meant by repro steps. Can you please explain bit more
Thanks
By repro steps, I mean a sequence of actions for us to do in order to trigger this error. Or, if you cannot find a clear one, could you provide us with more details about the context in which the error happened? (For instance, the code you had that trigger this error, what where you trying to do, if it was the first time you were publishing, if it happened only once or still reproduces regularly etc)
This way, it makes it easier for us to reproduce, understand and fix the issue you are describing
I have done development with AL and fixed the compile related issues. while i am trying to publish my application to the sandbox i am facing this error.
SchemaUpdateMode=synchronize failed with code 422. Reason: Value cannot be null. Parameter name: value
Please find the attachment..
Hi @srinivasdes, what happens if you created a new empty extension with AL:Go using the same launch.json and try to publish it to the same sandbox environment? Do you also get the same error? If not, can you try to cut down your extension until you get a minimal extension that reproduces the error?
Hi Qutreson, I can able to publish my test application with the same launch.json . I didn't get any error , But as you said i can not cut down my extension until i get a minimal extension, Because there are some dependencies between the al objects.
Can i have any other alternate
Thanks
So, you can either try to update to a newer version of the extension (in case this problem has already been fixed), or, you can also try to publish using the schema update mode recreate in your launch.json (but you will lose the data you have in your tables, see Retaining table data after publishing).
Current extension version is 0.14.17461. I couldn't find the update option to update the extension.
I have modified the launch.json and using the schema update mode recreate , Still having the same issue
any other suggestion..
Hello, I have the same issue
Testing against NAV 2018/CU03 with AL 15.18771
[2018-04-03 11:23:16.68] Sending request to http://localhost:7059/ArtexAddOn-NAV2018/dev/apps?SchemaUpdateMode=recreate
[2018-04-03 11:23:17.80] The request for path /ArtexAddOn-NAV2018/dev/apps?SchemaUpdateMode=recreate failed with code 422. Reason: Value cannot be null.
Parameter name: value
Hi @TKapitan, is it possible for you to try to comment out some parts of your extension in order to see if you can get a minimal project that reproduces the error?
Hi,
I was facing the same issue. Solved by deleting Translation folder with .xlf files. I suppose all my captions and labels were not in my .xlf file (because of renaming it) and maybe it's the cause (?).
@julienDecottignies thank you for narrowing the issue. Could you maybe try removing only parts of the xliff file? It could be there is an issue with a single label. Also, a newer version of the compiler will report more diagnostics about the xliff files so it might be easier to identify the problem with the latest version
Ok. I tried to: Delete Translations folder - Rebuild (wich recreate Translation folder) -> There was no probleme the first time I ran the app, but if I build it (without any change) the second (and next times), it fails. The only solution is to delete and build ...
I added some tooltips just thirty minutes ago, the problem is probably there. I come back with the answer, but why does only the first time I build after deleting translation folder works ..?
EDIT: 11h57 - Tried without Tooltips -> same issue
are you on nav 2018 or latest dev preview?
I'm on NAV 2018 CU3 and AL extension installed from VSIX (0.15.18771)
EDIT: Deleting tooltips references doens't change nothing.
Deleting Labels reference "fixed" the issue. So replacing all Label types by TextConst generates a "good" translation file..!
I think that this was fixed in the meantime on main. You will have to go through our standard support channels to get it backported for Nav2018
@julienDecottignies Thank you! That's it!
@DominikDitoIvosevic Is the solution described somewhere? We had no problems with that until we upgraded AL Language extension to the latest version...
@TKapitan - if you're using NAV 2018 you should be using the AL Language extension that comes with the product installer (version 0.12.XXX). Newer versions are for Business Central only. See the FAQ: https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions#which-version-of-the-al-language-extension-should-i-use
@StanislawStempin Maybe there is something wrong?
The new AL Extension (version 0.15.18771) has different XLIFF file than the older one. The old version had only source-language - then the XLIFF editor (we use "Transolution Xliff Editor") allows defining the target language at the start of translating. The new version has source-language and target language. Both contain same values (en-US). Than the XLIFF editor presumes the target language will be en-US and is not possible to redefine the language (so the only possibility how to translate is to change target-language manually)
When I change the target-language to something different (like cz-CS), the XLIFF editor is OK.
Another thing is the error "failed with code 422. Reason: Value cannot be null. Parameter name: value". I resolved it with the same - the error is happening because of the same values of source and target languages - it can be solved by changing the target-language in xliff.
So the question is - Why the new version generates both (source and target) language?
Hello Friends; I want to tell about of this Error : The request for path /DynamicsNAV110/dev/apps?SchemaUpdateMode=synchronize failed with code 422. Reason: TableExtension 50111 :: Unsupported field change. Field:MyComment; Change:Remove
We can solve This error
Please Go to Launch.json Change "schemaUpdateMode": "Synchronous" to "schemaUpdateMode": "Recreate"
Save and Create Package:
Thank you