Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > Integration with 1C Odata interface

Forum

Search UsersRules
Integration with 1C Odata interface
#1
Just came
Points:: 0
Joined:: Oct 30, 2013

Hello. We are trying to integrate with standart odata interface. We are using cloud integration platform and we have a problem with entities which have empty relationships. When we try to load metada from catalog "Контрагенты" we've receive this error:
Exception Type : NullReferenceException Message : Ссылка на объект не указывает на экземпляр объекта. StackTrace : в Scribe.Connector.Odata.ProtocolV1ToV3.Metadata.MetadataProviderV1ToV3.ProcessRelationsDefinitions(IEdmEntitySet entitySet, IEdmEntityType entityType) в Scribe.Connector.Odata.ProtocolV1ToV3.Metadata.MetadataProviderV1ToV3.SetObjectDefinition(IEdmEntitySet entitySet, IEdmEntityType entityType, Boolean shouldGetProperties, Boolean shouldGetRelations, Version odataVersion) в Scribe.Connector.Odata.ProtocolV1ToV3.Metadata.MetadataProviderV1ToV3.<>c__DisplayClass26.b__22(<>f__AnonymousType0`2 <>h__TransparentIdentifier1b) в System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() в System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) в Scribe.Core.Access.MetadataProvider.RetrieveObjectDefinition(String objectName, Boolean shouldGetProperties, Boolean shouldGetRelations) в Scribe.Core.Processor.StartFetchPropertyRelationshipMetadataCommandHandler.ProcessMetadataReply(Command command)

Have you any ideas how to workaround this?

Profile
#2
Just came
Points:: 0
Joined:: Oct 30, 2013

And question from integration platform developers: Does Odata interface support OData Service query the Expand option?

Profile
#3
Active user
Points:: 0
Joined:: Nov 3, 2011

Anton,

to investigate the error, we need to take a look at your configuration. Can you please provide it?

> Does OData interface support OData Service query the Expand option?
Yes, since 1C:Enterprise version 8.3.9.

Profile
#4
Just came
Points:: 0
Joined:: Oct 30, 2013

Hello Yulia!
We are testing our integration on demo configuration "Бухгалтерия предприятия, редакция 3.0 (3.0.47.26)"

Profile
#5
Active user
Points:: 0
Joined:: Nov 3, 2011

Anton, it looks like the exception comes from the .NET integration code. Can we have a look at it?

Profile
#6
Just came
Points:: 0
Joined:: Oct 30, 2013

It's code inside  private platform, like .NET code inside 1C platform.

Profile
#7
Active user
Points:: 0
Joined:: Nov 3, 2011

Anton, can you provide an sample configuration without any private data, then?  We only need that code part that causes the issue.

You can send it to int@1c.ru. Please add "for Yulia Ivanova" to the subject to ensure that I do not miss it.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.