Replies: 2 comments 6 replies
-
The definition of a valid ID is here: https://github.com/Azure/azure-mobile-apps/blob/main/sdk/dotnet/src/Microsoft.Datasync.Client/Utils/Arguments.cs#LL35C9-L35C96 private static readonly Regex validIdRegex = new("^[a-zA-Z0-9][a-zA-Z0-9-_.]{0,126}$"); So, yes, the | is not allowed. Having said that, there is no reason why we can't expand the definition of a valid ID. Submit an issue, and I'll work on it in the next release. |
Beta Was this translation helpful? Give feedback.
-
Adrian - is there anyway a path for bypassing the ID validation is possible. This is the only change I have in my version and would really like to use the real package. In Arguments.cs, IsValidId, I still have the null check, but commented the regular expression check. I don't know the best way to "weave" a setting into Arguments. I think most realize they need a unique ID and having the regex meet all the necessary values can be difficult. BTW - my app is now in production in the stores and it working really well. Thanks for your help. Alan |
Beta Was this translation helpful? Give feedback.
-
I have an existing database using the old Azure Mobile Client SDK. I'm now moving to the new Azure mobile sdk using Offline tables. In my current database I used a custom Id column that is a primary key to the data in some of my tables. The value is unique and works fine in the older mobile application. However, using the new SDK I'm getting an error that my Id is invalid. Is there someway to tell it that my Id value is not a default value and is ok? I hope it isn't the | causing the issue, this worked in the older SDK.
This is from the exception message '22-5430|571972766562' is an invalid ID (Parameter 'instance').
This exception is on the client, the server seems to be fine with the value.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions