SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
Expand all | Collapse all

New (?) Copy & Paste issue

  • 1.  New (?) Copy & Paste issue

    Posted Sat July 19, 2025 09:25 AM

    In SPSS 31.0.0.0 (117) running on MS Windows 10 Pro 64-bit, I am frequently encountering a Copy & Paste issue that at least I have never had in previous versions of SPSS (up to version 29 - I skipped version 30):

    When copying and pasting text within the same syntax editor window or between different syntax editor windows (I haven't tried with other windows inside SPSS yet), I frequently get the error message 'Unable to paste from the system clipboard. Please try again).' When I then copy and paste the same piece of text again, it usually works.

    Even though the following is off topic in this thread, I would like to mention that the well-known bug which interferes with pasting from other applications into SPSS windows and which is discussed in various other threads (e.g., here) has not appeared any more since switching to SPSS 31.



    ------------------------------
    Frank Furter
    ------------------------------


  • 2.  RE: New (?) Copy & Paste issue

    Posted Sat July 19, 2025 09:29 AM
    I encountered that same error yesterday for the first time, but repeating the paste action worked.  V31 on Win 11.


    --





  • 3.  RE: New (?) Copy & Paste issue

    Posted Sat July 19, 2025 10:20 AM

    ... not for me - I also had to repeat the copy action and then it worked.



    ------------------------------
    Frank Furter
    ------------------------------



  • 4.  RE: New (?) Copy & Paste issue

    Posted Sat July 19, 2025 10:27 AM
    Yes, I did repeat the copy, too.






  • 5.  RE: New (?) Copy & Paste issue

    Posted Thu August 07, 2025 05:10 PM

    Also experiencing this with V31 on windows 11. I just switched over to a new machine from an older laptop running an earlier version of SPSS on Windows 10. Ugh! I hope there's a solution.



    ------------------------------
    Jen Cox
    ------------------------------



  • 6.  RE: New (?) Copy & Paste issue

    Posted Mon August 25, 2025 09:34 AM

    Obnoxiously, I am also experiencing this issue with v31 on Windows 11 Enterprise 64bit.

    Repeating the copy/paste action will work, but the fact this is a long standing issue that hasn't been resolved should be embarrassing for SPSS/IBM. Experiencing the enshittification of SPSS since the early 00s motivates me to switch to R.



    ------------------------------
    David Vu
    ------------------------------



  • 7.  RE: New (?) Copy & Paste issue

    Posted Tue August 26, 2025 10:35 AM

    Thank you, David! I was looking for the word 'enshittification' in this context.



    ------------------------------
    Meni Berger
    ------------------------------



  • 8.  RE: New (?) Copy & Paste issue

    Posted Tue August 26, 2025 10:58 AM

    Any reaction from SPSS?



    ------------------------------
    Frank Furter
    ------------------------------



  • 9.  RE: New (?) Copy & Paste issue

    Posted Wed August 27, 2025 08:54 AM

    Hello all, yes we are still working on this issue. As noted in the other thread(s) on this topic, there are 3rd-party Windows issues which we have been thus far unable to completely stamp out. We thought it was Java at first, but in version 31 we circumvented Java and used C++ to go direct to the Windows operating system for clipboard operations on that platform, after which our QA dept could no longer reproduce the issue, but clearly some people are still seeing the problem. 

    We now are working with @Carolyn Stapleton on this. We have provided her with a custom jar file that dumps log information and are waiting to hear back from her with the logs. If anyone else is willing to work with us on this we will gladly do so.

    Best,



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 10.  RE: New (?) Copy & Paste issue

    Posted Wed August 27, 2025 09:25 AM

    Just to comment on how to go around when repeated copy and paste does not work: Save the syntax file (Ctrl+s) and it seems to reset the function and should work.

    To be fair, I have not seen yet an issue of copy+paste from other softwares such as excel, notetab, etc. in this version (SPSS 31 with Win11). It used to be my major issue with SPSS30.

    Thanks. 

    Ki



    ------------------------------
    Ki Park
    ------------------------------



  • 11.  RE: New (?) Copy & Paste issue

    Posted Thu August 28, 2025 04:00 AM

    ... yes, I can completely confirm the observation of @Ki Park. In Version 31, I haven't had any more issues copying and pasting from 'other' software into an SPSS syntax window, which could drive you crazy in Versions 29 (I skipped 30) and before. The Copy&Paste 'ghost' is, however, still around and now haunts operations inside SPSS ...



    ------------------------------
    Frank Furter
    ------------------------------



  • 12.  RE: New (?) Copy & Paste issue

    Posted Fri August 29, 2025 10:08 AM
    Edited by Curtis Browning Fri August 29, 2025 10:08 AM

    Hello everyone. We got some specialized debugging information back from Carolyn regarding this issue. It turns out that the Windows SDK function named ::OpenClipboard() is failing. We already have logic in the code to retry once, and the recommendations from MS forums, among other things to try, is to retry the ::OpoenClipboard() call multiple times separated by 50 millisecond sleep intervals. Also to use an HWND instead of NULL as a parameter to the above call, and finally to add a call to ::PeekMessage() before attempting to open the clipboard. 

    We will be adding the above code changes to a test DLL that we will send to Carolyn, and which other users can also try if they would like. If you are experiencing the clipboard issue and would like to work with us on addressing it, please message me privately with your email address and we can take it from there.

    This appears to be a rather long-standing problem on Windows. The links below show some of the manifestations of this problem, along with a few suggested work-arounds:

    • https://learn.microsoft.com/en-us/answers/questions/3745237/how-do-i-fix-repeated-open-clipboard-failed-messag
    • https://learn.microsoft.com/en-us/answers/questions/4046571/i-can-not-open-clipboard
    • https://learn.microsoft.com/en-us/answers/questions/1695747/occasional-system-exception-openclipboard-failed-(

    Here are some of the AI-suggested work-arounds that may or may not help those who are seeing this problem:

    ~~~

    The OpenClipboard function in Windows can fail for several reasons, primarily due to the clipboard being in use by another application or process. This can manifest as an error like 0x800401D0, indicating temporary unavailability.
    Troubleshooting steps to address OpenClipboard failures:
    • Close other applications:
      Ensure no other applications are actively using the clipboard, particularly those with persistent clipboard monitoring features or large data transfers.
    • Clear clipboard history:
      • Open Settings > System > Clipboard.
      • Click Clear clipboard data.
      • Alternatively, press Windows key + V to open clipboard history and click Clear all.
    • Restart Clipboard User Service:
      • Open the Run dialog (Windows key + R) and type services.msc.
      • Locate Clipboard User Service (it might have a random string suffix).
      • Ensure its Startup type is Automatic and the service is Running. If not, start it.
    • Restart Windows Explorer:
      • Open Task Manager (Ctrl + Shift + Esc).
      • Find Windows Explorer in the Processes tab.
      • Right-click and select Restart.
    • Run System File Checker (SFC) and DISM:
      • Open Command Prompt as administrator.
      • Run sfc /scannow to check for and repair corrupted system files.
      • Run DISM /Online /Cleanup-Image /RestoreHealth to repair the Windows image.
    • Check for malware/viruses:
      Perform a full system scan with reputable antivirus software.
    • Update Windows:
      Ensure your operating system is up to date with the latest patches and updates.
    • Consider application-specific issues:
      If the error occurs only within a specific application (e.g., Visual Studio), consult that application's documentation or support resources for known issues and workarounds.
    ~~~



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 13.  RE: New (?) Copy & Paste issue

    Posted Wed September 17, 2025 09:43 AM

    Hello all. Just a quick note to inform everyone that we have improved the clipboard handling code in the syntax editor for the upcoming release 31.0.1.0. Although nothing is perfect in this world and as noted this is a Windows problem and not a Statistics defect, we worked with @Carolyn Stapleton to try various approaches where we were able to greatly reduce the frequency of the problem. In 39 attempts she was able to successfully paste into a syntax editor 38 times, and our QA has been unable to reproduce the problem at all in version 31.0.1.0. 

    Let us know how version 31.0.1.0 works on your systems. Please send us feedback so we can better understand how the fixes are working.

    And while you're at it, try the new AI Output Assistant in version 31.0.1.0 - it provides explanatory insights into Statistics Output that has long been something that users have asked for.

    Thanks and regards,

    Curtis



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 14.  RE: New (?) Copy & Paste issue

    Posted Thu September 18, 2025 08:12 AM

    Hello@Curtis Browning,

    I am very excited to hear about the AI Output Assistant in version 31.0.1.0! How or where can I obtain an installation file?

    The software access catalog does not yet hold such a version.

    Thank you!


     



    ------------------------------
    Meni Berger
    ------------------------------



  • 15.  RE: New (?) Copy & Paste issue

    Posted Thu September 18, 2025 08:55 AM

    Hi @Meni Berger,

    Glad you're interested in the new AI Output Assistant. It is a part of version 31.0.1.0, which is currently targeted for a September 25th release. Note that currently a trial or paid IBM Cloud account is needed to use the feature in version 31.0.1.0, but we're working to add support for 20-30 introductory insights that won't require a Cloud account in version 31.0.2.0, coming in December.

    Best regards,

    Curtis



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 16.  RE: New (?) Copy & Paste issue

    Posted Thu September 18, 2025 09:41 AM

    I must use IBM Cloud as a source for the AI provider? I can't add a third-party AI source like OpenAI API Key for ChatGPT?

     

              

    Meni Berger |

    Data Scientist and Head of Tech  Support

    Email  -  Meni@genius.co.il

    11 Menachem Begin st.,  Ramat Gan

    www.genius.co.il

    Click here to open a support ticket  

    Title: LinkedIn - Description: image of LinkedIn icon

     

     






  • 17.  RE: New (?) Copy & Paste issue

    Posted Thu September 18, 2025 11:07 AM

    Hi @Meni Berger,

    Yes, the first release just uses watsonx.ai for AI insights. We considered supporting other AI providers such a MS-Copilot, but our resources are stretched and the feature as it stands took a lot of effort in the 3 months since release 31.0.0.0 came out. We may add support for other providers in the future - your feedback to Product Management will help in guiding decisions regarding the future allocation of resources.

    Best,

    Curtis



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 18.  RE: New (?) Copy & Paste issue

    Posted 22 days ago

    Thank you, Curtis.

     

    I really appreciate the effort, and I really hope that other services will be available, because we work with the OpenAI Chat GPT platform across the company, and would really like the opportunity to leverage my Chat GPT with SPSS AI.

     

    On another note, I was able to successfully create the Watsonx.ai account (using the Setting up your account via the Help system), although I am having issues with AIOA. It doesn't seem to be uploading the selected output objects. Please see screenshot attached:

     

     

             

    Meni Berger |

    Data Scientist and Head of Tech  Support

    Email  -  Meni@genius.co.il

    11 Menachem Begin st.,  Ramat Gan

    www.genius.co.il

    Click here to open a support ticket  

    Title: LinkedIn - Description: image of LinkedIn icon

     

     






  • 19.  RE: New (?) Copy & Paste issue

    Posted 21 days ago

    Hi Meni,

    This is the first we've heard of an upload problem like the one you are showing above. May I assume this happens every time? I will reach out to you directly to see if we can get to the bottom of this.

    Best,

    Curtis



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 20.  RE: New (?) Copy & Paste issue

    Posted 21 days ago
      |   view attached

    Hi @Meni Berger We tried the same scenario that you mentioned above using the same model and got a valid response. PFA the screenshot.



    ------------------------------
    Jayakrishnan K
    ------------------------------



  • 21.  RE: New (?) Copy & Paste issue

    Posted Thu September 18, 2025 09:01 AM

    @Curtis Browning, you said, "this is a Windows problem and not a Statistics defect".  Two of my colleagues who use Mac versions of SPSS have also experienced Copy-Paste problems. This does not rule out the possibility of a Windows problem.  But AFAICT, a Windows problem would not cause difficulties for Mac users, would it?  It would be great to hear from other Mac users to get some sense of how big a problem this is for them too. 

    Cheers,
    Bruce
    (Currently running SPSS 29 for "Windoze")

     



    ------------------------------
    Bruce Weaver
    ------------------------------



  • 22.  RE: New (?) Copy & Paste issue

    Posted Thu September 18, 2025 11:03 AM

    Hi @Bruce Weaver,

    Thus far our QA has only been able to reproduce this on Windows and the vast majority of reports around this issue are on Windows. Our debugging traces with Windows users who can reproduce it (such as Carolyn) indicate that the problem is with a low-level Windows SDK call which doesn't exist on MacOS. If there is a problem being seen on MacOS as well, it is most likely unrelated since the API calls are completely different on Windows and MacOS. We are happy to work with any Mac users who can reproduce the issue there (be prepared to receive special .dylib files that dump debug logs to a temporary directory). 

    Best,

    Curtis



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------