-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:Adding OData Connected Service to the project failed: The 'Name' attribute is invalid #89
Comments
nobody wants to help me ? |
I tried it in my own service. All good. |
Hello unchase, |
@gtrennert, сould you send the metadata file (or public URI) for the service to be added so that I can check the issue? |
@gtrennert. OData library does not support a naming in form of "_Balance_LCY_Payment_in_progress_LCY", and the Connected service too. P.S. I removed the first "_" in "_Balance_LCY_Payment_in_progress_LCY" (in metadata file) => "Balance_LCY_Payment_in_progress_LCY" and it works! |
I understand what you are saying, but I'm just testing web service access for Business central, its microsoft standard and I just don't understand why there is a leading underscore. |
I agree. In any case, the client code generator cannot correctly handle this naming. |
I will create a new page in which I will exclude all this fields beginning with _ |
@gtrennert, you're welcome. |
In Visual Studio 2017, on trying to add an OData Connected Service, I get the error below:- |
@nick-webbgh, сould you send the metadata file to me by email? I will check the issue. |
Please see attached. Thanks in advance for your help.
From: [email protected] (Chebotov Nickolay) <[email protected]>
Sent: 11 September 2019 22:34
To: OData/lab <[email protected]>
Cc: Nick Webb <[email protected]>; Mention <[email protected]>
Subject: Re: [OData/lab] Error:Adding OData Connected Service to the project failed: The 'Name' attribute is invalid (#89)
@nick-webbgh<https://github.com/nick-webbgh>, сould you send the metadata file to me by email? I will check the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#89?email_source=notifications&email_token=AMXXQM3JJVQHNPA7USBPWQ3QJFP4LA5CNFSM4FLOKX52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6P67II#issuecomment-530575265>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMXXQM2Z4NQ25AFZWBXLXETQJFP4LANCNFSM4FLOKX5Q>.
|
Hi. There is no attached files.
Can you send again to [email protected]?
|
I did attach the file last time. Maybe it got blocked. I’ve zipped it this time.
From: [email protected] (Chebotov Nickolay) <[email protected]>
Sent: 13 September 2019 20:57
To: OData/lab <[email protected]>
Cc: Nick Webb <[email protected]>; Mention <[email protected]>
Subject: Re: [OData/lab] Error:Adding OData Connected Service to the project failed: The 'Name' attribute is invalid (#89)
There is no attached files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#89?email_source=notifications&email_token=AMXXQM4Q2REUIISDW2435VLQJPWADA5CNFSM4FLOKX52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WBHTA#issuecomment-531370956>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMXXQMZ7S2UJNNWWCCJU5WTQJPWADANCNFSM4FLOKX5Q>.
|
Hello again unchase, |
even now that i deleted all other published webservices i have many popups like mentionned above and second thing I wanted to ask : Is there any place with help - because I am a little bit lost in c# howto go for inserting data via web service |
Because I tried to find help but there is always something missing - for example : |
@gtrennert , could you create an issue in my repository: ask a question or report a bug? Check the issue after updating to Unchase OData Connected Service v1.3.0 On the last question: I can advise official documentation. |
Fixed in Unchase OData Connected Service v1.3.2. |
The first thing I would try is to remove the dash from DB-StorageDetails?
From: ***@***.*** (zdrehs) ***@***.***>
Sent: 24 September 2021 03:05
To: OData/lab ***@***.***>
Cc: Nick Webb ***@***.***>; Mention ***@***.***>
Subject: Re: [OData/lab] Error:Adding OData Connected Service to the project failed: The 'Name' attribute is invalid (#89)
Hello unchase - I am trying to use Unchase OData Connected Service 1.4.3 to connect to Accumatica OData feed but am getting this same invalid name issue - 'The value 'DB-StorageDetails' is invalid according to its datatype.... .... The Pattern constraint failed.
Any idea why this would be happening?
[image]<https://user-images.githubusercontent.com/91299198/134607195-b6a65a43-fdf9-4095-b1cf-a9f06fe1d366.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#89 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMXXQMZI5YDCXXKM7CDMA4TUDPMC5ANCNFSM4FLOKX5Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thanks for your reply, the dash in all the names does appear to be the issue but these are all the default objects in Accumatica OData feed and they work fine when consumed in other OData applications. |
Just out of interest, have you tried using the ordinary OData Connected Service instead of the Unchase one? |
Yes I did try it first but had issues with authentication which was easily solved using the Unchase one |
@zdrehs What kind of issues did you have exactly? |
You can add authentication details into the custom headers (see link below):- https://docs.microsoft.com/en-us/odata/connectedservice/accessing-endpoints-with-auth |
Ive been reading through the comments and from what I can tell my issue should not be an error: However, I cant seem to add it through VS 2022 using the newest version (1.5.1) of Unchase OData Service found through VS. I had to upload the file im using as a .txt, as a heads up. Since it did not allow .xml Any help would be greatful Thanks! |
hello i am getting this error message when i try add xamarin forms application
Adding Nuget Packages
Generating Client Proxy ...
Error:Adding OData Connected Service to the project failed: The 'Name' attribute is invalid - The value 'ErpWeb365.ApiService' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
The text was updated successfully, but these errors were encountered: