Показать сообщение отдельно
Старый 16.02.2012, 17:10   #14  
lin2nil is offline
lin2nil
Участник
 
63 / 10 (1) +
Регистрация: 07.09.2011
Адрес: Ярославль
Цитата:
Сообщение от a33ik Посмотреть сообщение
Это не так. Ошибку вызывает как раз метка аттрибута. Что могу вам посоветовать. Включите SQL Profiler и постарайтесь опубликовать форму - как раз после вычитки очередной метки публикация и отвалится. Таким образом вы получите идентификатор нужной метки. Далее из файла кастомизации можно уже установить где эта метка используется и удалить все ссылки на неё.
Спасибо за совет,
профайлер выдал вот такие запросы, при попытке опубликовать объект:
X++:
exec sp_executesql N'INSERT INTO #MetadataPublishCollect(ObjectId, ObjectTypeCode, InProduction) values (@objectId, @objectTypeCode, @inProduction)',N'@objectId uniqueidentifier,@objectTypeCode int,@inProduction bit',@objectId='21538890-1E54-4171-ACA8-7EC97A9C652C',@objectTypeCode=1,@inProduction=1
а затем
X++:
exec sp_executesql N'SELECT T1.AttributeId AS attributeid,
	T1.LogicalName AS logicalname FROM AttributeLogicalView T1
				LEFT OUTER JOIN AttributeLogicalView T2 ON
				(T1.AttributeId = T2.AttributeId AND T1.AttributeRowId <> T2.AttributeRowId and T1.InProduction = 1)
				where T2.InProduction is null AND T1.EntityId = @EntityIdwhere0 AND T1.LogicalName IN(@LogicalNamewhere0, @LogicalNamewhere1, @LogicalNamewhere2, @LogicalNamewhere3, @LogicalNamewhere4, @LogicalNamewhere5, @LogicalNamewhere6, @LogicalNamewhere7, @LogicalNamewhere8, @LogicalNamewhere9, @LogicalNamewhere10, @LogicalNamewhere11, @LogicalNamewhere12, @LogicalNamewhere13) AND T1.CustomizationLevel <> @CustomizationLevelwhere0',N'@EntityIdwhere0 uniqueidentifier,@LogicalNamewhere0 nvarchar(4),@LogicalNamewhere1 nvarchar(11),@LogicalNamewhere2 nvarchar(2),@LogicalNamewhere3 nvarchar(13),@LogicalNamewhere4 nvarchar(9),@LogicalNamewhere5 nvarchar(7),@LogicalNamewhere6 nvarchar(11),@LogicalNamewhere7 nvarchar(17),@LogicalNamewhere8 nvarchar(21),@LogicalNamewhere9 nvarchar(12),@LogicalNamewhere10 nvarchar(12),@LogicalNamewhere11 nvarchar(7),@LogicalNamewhere12 nvarchar(7),@LogicalNamewhere13 nvarchar(11),@CustomizationLevelwhere0 int',@EntityIdwhere0='21538890-1E54-4171-ACA8-7EC97A9C652C',@LogicalNamewhere0=N'from',@LogicalNamewhere1=N'phonenumber',@LogicalNamewhere2=N'to',@LogicalNamewhere3=N'directioncode',@LogicalNamewhere4=N'new_thema',@LogicalNamewhere5=N'subject',@LogicalNamewhere6=N'description',@LogicalNamewhere7=N'regardingobjectid',@LogicalNamewhere8=N'actualdurationminutes',@LogicalNamewhere9=N'prioritycode',@LogicalNamewhere10=N'scheduledend',@LogicalNamewhere11=N'ownerid',@LogicalNamewhere12=N'subject',@LogicalNamewhere13=N'description',@CustomizationLevelwhere0=2