HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions
These docs are for v20.3.44. Click to read the latest docs for v20.3.192.

Discussions

Ask a Question
Back to All

Creating a Relationship - Guid should contain 32 digits with 4 dashes

We have a developer trying to create a relationship through the APIs and is running into the error below. Thoughts?

2019-05-21 16:33:24,966 [82] ERROR CACLOUDPLUSSQL:CFPCDEV [(null)] - Error occured at Uri: https://cfpcapp2.imiscloud.com/asi.scheduler_cfpcdev/api/Relationship/7293
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
at System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult& result)
at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
at System.Guid..ctor(String g)
at Asi.Business.BusinessFilter.ConvertTo(Object value, Type conversionType, Object& convertedValue)
at Asi.Business.BusinessFilter.IsValid(BusinessController controller)
at Asi.Business.BusinessFilter.GetFilterInfo(BusinessController controller, BusinessFilter[] filters, String& whereText, DataParameter[]& parameters, String& dbWhereText)
at Asi.Business.BusinessController.SelectWithFilter(BusinessFilter[] filters, Boolean loadFromDatabase, String sort, Boolean forceReload, Boolean publishedOnly, Boolean ignoreLicensing, Boolean isVersioned)
at Asi.Business.BusinessController.SelectWithFilter(BusinessFilter[] filters, Boolean loadFromDatabase, String sort, Boolean forceReload, Boolean publishedOnly, Boolean ignoreLicensing)
at Asi.Business.BusinessController.SelectWithFilter(BusinessFilter[] filters, Boolean loadFromDatabase, String sort, Boolean forceReload, Boolean publishedOnly)
at Asi.Business.BusinessController.SelectWithFilter(BusinessFilter[] filters, Boolean loadFromDatabase, String sort, Boolean forceReload)
at Asi.Business.BusinessController.SelectWithFilter(BusinessFilter[] filters, Boolean loadFromDatabase)
at Asi.Soa.Core.Persistence.GenericBusinessPersistenceStrategy.FindByIdentity(BusinessController controller, IdentityData identity)
at Asi.Soa.Core.Persistence.BusinessPersistenceStrategyBase.FindByIdentity(IdentityData identity)
at Asi.Soa.Core.Domain.Repository.FindIdentityItemByIdentity(IdentityData identity)
at Asi.Soa.Core.Domain.Repository.FindByIdentity(IdentityData identity)
at Asi.Services.Core.EntityServiceToCommonServiceAdapter1.FindById(Object id) at Asi.Services.Core.EntityServiceToCommonServiceAdapter1.Asi.Soa.Core.ServiceContracts.ICommonReadOnlyService.FindById(Object id)
at Castle.Proxies.Invocations.ICommonReadOnlyService_FindById.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Asi.Shared.Aspects.CacheAspect.Intercept(IInvocation invocation) in C:\Builds\208\ScrumV3\sp137_Main10\Sources\MainFoundation\imis.net\Packages\Platform\Asi.Shared\Aspects\CacheAspect.cs:line 62
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Asi.Services.Core.Interceptors.CommonSecurityAspect.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Asi.Shared.Aspects.PerformanceAspect.Intercept(IInvocation invocation) in C:\Builds\208\ScrumV3\sp137_Main10\Sources\MainFoundation\imis.net\Packages\Platform\Asi.Shared\Aspects\PerformanceAspect.cs:line 55
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ICommonService`1Proxy_2.FindById(Object id)
at Asi.Scheduler.Controllers.CommonServiceController.Put(String entityName, String entityId, Object entity)