Hi @Partha Das ,
Thank you for posting query in Microsoft Q&A Platform.
I tried to reproduce your case. Its working fine with table names as
dbo.Module
. Kindly check below screenshots and script and try to implement in same way.
Execution in SSMS:
Script Activity Execution in ADF:
Script Used in Script Activity:
DECLARE @xml XML;
DECLARE @stringXML varchar(max);
SET @xml = (SELECT * FROM dbo.Module FOR XML PATH('Module'),TYPE);
SET @stringXML = CONVERT(varchar(max),@xml);
SELECT @stringXML as stringXML;
For Some reason, If still you are facing issue, you can consider having a view on top of table and then write script to create XML from view or you can also consider having stored procedure.
Hope this helps. Please let us know if any further queries.
--------------
Please consider hitting Accept Answer
button. Accepted Answers help community as well.
Hi @Partha Das , Looks strange. Kindly check all steps slow one by one in comparison with above screenshots. If still unable to find the root cause. Then mean while I would suggest to have a view created on table or Stored procedure for the task. Hope this helps.
----------
Please consider hitting
Accept Answer
button. Accepted answers help community as well.Hi @ShaikMaheer-MSFT it seems that since my xml is very large in size, ADF can't handle with Azure IR. It needs Self Hosted IR to work with huge size.
https://learn.microsoft.com/en-us/answers/questions/618115/unable-to-load-500-mb-xml-file-using-azure-data-fa.html
But marking your answer as correct.