
지난 몇 달 동안 작동하는 업데이트 스크립트가 있었지만 3일 전부터 업데이트가 더 이상 작동하지 않습니다. 오류는 ItemsRead 테이블을 찾을 수 없지만 대안에 있다는 것을 반환합니다. 내 쿼리는 다음 오류를 반환합니다.
Invantive error: ValidationException itgeneor028
Unknown table 'ItemsRead'. Possible valid alternatives: ItemsRead, Items, Me, ItemPrices, Titles, ItemDetails, Lines, Units, Leads
무엇이 변경되었으며 어떻게 해결할 수 있나요? 고객의 웹사이트에 제품이 없어서 긴급합니다. 내 쿼리:
use <id>
select e.ID, e.Code, e.Description, e.SalesPrice, e.DefaultSalesPrice, e.ItemGroup, e.ItemGroupCode, e.ItemGroupDescription, e.Notes, e.PictureName, e.PictureUrl, e.Stock, e.Unitdescription, e.IsWebshopItem, i.Class_01, i.Class_02, i.Class_03 from exactonlinerest..items e left join logistics.ItemsRead i on e.ID = i.ID
답변1
오류 메시지가 약간 불분명합니다. 그렇습니다. 문제는 찾을 수 없다는 것입니다 *Logistics*.ItemsRead
. ItemsRead
괜찮다. 따라서 해당 개체는 대안 목록에 있습니다.
그런데 개체의 이름이 바뀌었고 Items
실수 ItemsRead
로 교체되었습니다. 이제 수정되었으므로 이제 다음 쿼리를 사용해야 합니다.
select e.ID
, e.Code
, e.Description
, i.SalesPrice
, i.DefaultSalesPrice
, i.ItemGroup
, i.ItemGroupCode
, i.ItemGroupDescription
, i.Notes
, i.PictureName
, i.PictureUrl
, i.Stock
, i.Unitdescription
, i.IsWebshopItem
, e.Class_01
, e.Class_02
, e.Class_03
from exactonlinerest..items e
join exactonlinerest..ItemsRead i
on e.ID = i.ID