Forum Discussion
Synapse SQL connector for warehouse failed to write data.
- 6 months ago
Hi Folks,
The same code is working now. I havent changed anything but now it is running. Seems to be something internal issue.
Hello chetanhiwale
Could you please try the following steps:
1. Set the append mode to "overwrite" by using df.write.mode("overwrite").synapsesql.
2. Is the warehouse you are writing to located within the same workspace as your notebook?
3. You mentioned that the code works for your colleague. Are they using the same workspace? If not, would you be able to check if their Fabric runtime matches yours?
Hi deborshi_nag ,
Both warehouse and notebook are in same workspace. Also I do have 1.3 runtime and tried with overwrite. But the issue still persists.
- deborshi_nag6 months agoSuper User
Hi chetanhiwale make sure you have the following 2 lines in the same cell in your notebook.
import com.microsoft.spark.fabricfrom com.microsoft.spark.fabric.Constants import Constants- chetanhiwale6 months agoResolver I
Hi deborshi_nag , I have imported the modules.
- chetanhiwale6 months agoResolver I
Hi Folks,
The same code is working now. I havent changed anything but now it is running. Seems to be something internal issue.- deborshi_nag6 months agoSuper User
Hi chetanhiwale if it is working can you mark it as resolved please?