Skip to content
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

While trying to use this control for timeline control, we are getting below error #3

Open
ajaydandage opened this issue Apr 3, 2020 · 7 comments

Comments

@ajaydandage
Copy link

Hi ramarao9,

Thanks for the cool control, but when we are trying to use this control, we are getting below issue, can you please help?

An error has occurred while trying to upload the attachment. An error occurred while validating input parameters: Microsoft.OData.ODataException: An undeclared property 'objectid_' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values. at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadUndeclaredProperty(IODataJsonLightReaderResourceState resourceState, String propertyName, Boolean propertyWithValue) at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadPropertyWithoutValue(IODataJsonLightReaderResourceState resourceState, String propertyName) at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.<>c__DisplayClass9_0.b__0(PropertyParsingResult propertyParsingResult, String propertyName) at Microsoft.OData.JsonLight.ODataJsonLightDeserializer.ProcessProperty(PropertyAndAnnotationCollector propertyAndAnnotationCollector, Func2 readPropertyAnnotationValue, Action2 handleProperty) at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadResourceContent(IODataJsonLightReaderResourceState resourceState) at Microsoft.OData.JsonLight.ODataJsonLightReader.StartReadingResource() at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadResourceSetItemStart(PropertyAndAnnotationCollector propertyAndAnnotationCollector, SelectedPropertiesNode selectedProperties) at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadAtStartImplementationSynchronously(PropertyAndAnnotationCollector propertyAndAnnotationCollector) at Microsoft.OData.ODataReaderCore.ReadImplementation() at Microsoft.OData.ODataReaderCore.InterceptException[T](Func`1 action) at System.Web.OData.Formatter.Deserialization.ODataReaderExtensions.ReadResourceOrResourceSet(ODataReader reader) at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext) at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)

@ramarao9
Copy link
Owner

ramarao9 commented Apr 6, 2020

Hi @ajaydandage , thank you for using the control!

Could you provide screenshots of how you configured the control?

@Kultanaamio
Copy link

Hi @ramarao9 I'm facing similar issue. Control is configured to email form, error occurs when new email is created and initially saved and attachment upload is tried with the control. However if form is refreshed manually after initial save, the error does not appear and control works as expected. Screenshot on the control configuration below:
image

@ramarao9
Copy link
Owner

Hi @Kultanaamio, thank you for the steps, I was able to reproduce the issue. I'm currently looking into it and will have a fix soon.

@ramarao9
Copy link
Owner

@Kultanaamio a new release has been created. Could you please give it a try and let me know if the issue has been resolved?

@Kultanaamio
Copy link

@ramarao9 the new release 1.0.0.2 solves the issue, great work & thank you!

@LokeshSrivastava
Copy link

Hi @ramarao9 i am getting similar issue error is same as above but i have version 1.0.0.5 and its coming on a particular environment but in the same environment in other entities its working fine i check the network trace so the request that is hitting annotation getting 400. is there a way to resolve it

@ramarao9
Copy link
Owner

@LokeshSrivastava Can you provide a screenshot of the configuration for this particular entity on the form and the raw request payload for the 400 error you are receiving?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants