Home

Using Cosmos DB as Output of Stream Analytics Job

%3CLINGO-SUB%20id%3D%22lingo-sub-721528%22%20slang%3D%22en-US%22%3EUsing%20Cosmos%20DB%20as%20Output%20of%20Stream%20Analytics%20Job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-721528%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20an%20Stream%20Analytics%20job%20with%20input%20as%20Blob%20Storage%20and%20output%20as%20Cosmos%20DB.%20The%20Blob%20Storage%20contains%20a%20CSV%20file%20with%20two%20records%20in%20it.%20The%20CSV%20file%20has%20first%20row%20as%20header%20row.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20Stream%20Analytics%20query%20is%20simple%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%3CFONT%20face%3D%22Consolas%22%3ESELECT%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22Consolas%22%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3E*%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CFONT%20face%3D%22Consolas%22%3EINTO%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CFONT%20face%3D%22Consolas%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MyCosmosDB%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CFONT%20face%3D%22Consolas%22%3EFROM%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CFONT%20face%3D%22Consolas%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20myblobstorage%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EAfter%20I%20start%20the%20Stream%20Analytics%20job%2C%20when%20I%20insert%20a%20new%20CSV%20file%20into%20Blob%20Storage%2C%20the%20stream%20job%20is%20giving%20a%20warning%20on%20Output.%20The%20warning%20says%3A%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20411px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120675iFD31B4E5A67BA8D4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3EI%20checked%20the%20Cosmos%20DB%20and%20no%20record(s)%20were%20inserted%20into%20it.%20Can%20someone%20please%20help%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ERegards%3C%2FDIV%3E%3CDIV%3EImran%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
kaispe
Occasional Contributor

Hi,

 

I have created an Stream Analytics job with input as Blob Storage and output as Cosmos DB. The Blob Storage contains a CSV file with two records in it. The CSV file has first row as header row.

 

My Stream Analytics query is simple:

 

SELECT
     *
INTO
    MyCosmosDB
FROM
    myblobstorage
 
After I start the Stream Analytics job, when I insert a new CSV file into Blob Storage, the stream job is giving a warning on Output. The warning says:
 
Capture.PNG
I checked the Cosmos DB and no record(s) were inserted into it. Can someone please help?
 
Regards
Imran
Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies