TRIM:通过Web服务API创建记录的权限错误

时间:2016-07-22 04:25:00

标签: trim hp-trim

HP TRIM 8.0

我正在尝试使用Service API创建记录并收到此错误消息,但我可以成功创建待办事项,缺少任何权限设置?

2016-07-22 10:15:36,661 [20] ERROR ServiceStack.DtoUtils - ServiceBase<TRequest>::Service Exception
HP.HPTRIM.SDK.TrimException: You do not have create record access for this Record Type.
at HP.HPTRIM.SDK.Record..ctor(RecordType recordType)
at HP.HPTRIM.Service.RecordConstructor.Construct(Database database, TrimObject trimObject)
at HP.HPTRIM.Service.Extensions.FindOrCreateTrimObject(TrimMainObject trimObject, Database database)
at HP.HPTRIM.Service.TrimObjectUpdater`1.<getTrimMainObjects>d__0.MoveNext()
at HP.HPTRIM.Service.TrimObjectUpdater`1.update(T request, IRequest requestContext, Action`1 action)
at HP.HPTRIM.Service.RecordDocumentServiceBase.DoPost(Record request)
at HP.HPTRIM.Service.RecordDocumentService.Post(Record request)
at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)

1 个答案:

答案 0 :(得分:1)

错误明确指出用户无权创建特定记录类型。确保将apppool用户添加为可信用户。